const db = require('../../../libs/db.config');

module.exports = async (data) => {
    const newData = data;
    // const searchSQL = `SELECT * FROM user WHERE userName = "${username}"`;
    const searchSQL = 'delete FROM shoppingcar WHERE cID = ? and userID = ?';
    return await db.query(searchSQL, [newData.cID, newData.userID]);
};
